// JavaScript Document




function addcomment(){
	var newcomment = document.getElementById("input").value;
	d = new Date();
	document.getElementById("isi").innerHTML += "<br/>"+ "(" +d.getDate()+"/"+d.getMonth() + "/" + d.getFullYear()+ " " + d.getHours() + ":" + d.getMinutes() + ")"+ " Anonymous say : " + newcomment;
}

function plus1(id1,id2){
	document.getElementById(id1).value++;
	document.getElementById(id2).innerHTML=document.getElementById(id1).value;
}

function min1(id1,id2){
	document.getElementById(id1).value--;
	document.getElementById(id2).innerHTML=document.getElementById(id1).value;
}

function randomisi(id){
	document.getElementById(id).value = Math.floor(Math.random() * "100000" - "50000");
	
}

